﻿@using Janus.Mes.WebClient;
@using Janus.BaseEntitys;
@using Janus.Mes.VO;
@model QCParameterVO
@{
    Layout = null;
    ViewBag.ViewTitle = "品质参数";
}
<script type="text/javascript">
    $(document).ready(function () {
        $(document).on("blur", ".IntervalTime", function myfunction() {
            if ($.trim($(".IntervalTime").val()).length > 0) {
                $(".IsRestCheck").prop("checked", false);
            }
        });
        $(document).on("blur", ".IsRestCheck", function myfunction() {
            if ($(".IsRestCheck").attr("checked")) {
                $(".IntervalTime").val("");
            }
        });

    })
</script>
<div class="pageContent">
    <form method="post" action="BaseData/QCParameter/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <fieldset>
                <legend>触发检验设定(分钟)</legend>
                <p>
                    <label>
                        停机重启检验：
                    </label>
                    @Html.CheckBoxFor(c => c.IsRestCheck, new { @class = "IsRestCheck" })
                </p>
                <p>
                    <label>
                        首件停机间隔时间：
                    </label>
                    @Html.TextBoxFor(c => c.IntervalTime, new { @class = "IntervalTime" })
                    @Html.ValidationMessageFor(c => c.IntervalTime)
                </p>
            </fieldset>
            <fieldset>
                <legend>触发检验设定</legend>
                <p>
                    <label>
                        启用【尺寸测量】：
                    </label>
                    @Html.CheckBoxFor(c => c.IsEnableSize)
                </p>
                <p>
                    <label>
                        启用【信赖性检测】：
                    </label>
                    @Html.CheckBoxFor(c => c.IsEnableReliability)
                </p>
            </fieldset>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
    </form>
</div>